<!-- 购物车的导航栏 -->
<template>
  <div>购物车({{$store.state.shopcar.length}})</div>
</template>

<script>
export default {
    name:"shopbar"
}

</script>
<style scoped>
    div{ 
        height: 44px;
        position: fixed;
        width: 100%;
        left: 0;
        right: 0;
        top: 0;
        background: red;
        text-align: center;
        line-height: 44px;
        font-size: 25px;
        z-index: 5;
    }
</style>